home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 626 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: alt.msdos.programmer,comp.lang.c
  4. Subject: Re: Pascal program works but not C program!
  5. Date: 7 Jan 1996 21:35:08 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4cq3dc$akp@solutions.solon.com>
  8. References: <4cdpr2$psi@lugb.latrobe.edu.au> <4cp3vc$8nh@brahms.tfi.be> <4cpqt6$9r8@solutions.solon.com> <821069300snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <821069300snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13. >In article <4cpqt6$9r8@solutions.solon.com>
  14. >           seebs@solutions.solon.com "Peter Seebach" writes:
  15. >>>void main (int argc, char **argv)
  16. >>Yup.
  17.  
  18. >Oops!
  19.  
  20. Let this be a lesson to all of you - even when you *do* know what you're
  21. doing, take the time to browse the post and make sure you didn't do
  22. anything particularly stupid.
  23.  
  24. Well, there.  I've made a mistake in news this year, now I can relax,
  25. and maybe '97 will be the year that I post actively in several groups
  26. without making an obvious mistake.
  27.  
  28. (For those unclear: The declaration above is not legal C, and results
  29. in undefined behavior.  Many books get this wrong.  And to give this
  30. alt.msdos.programmer relevance, where do you think the famed errorlevel
  31. *comes* from?  The return from main().)
  32.  
  33. -s
  34. -- 
  35. Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
  36. C/Unix proto-wizard -- C/Unix questions? Send mail for help.  No, really!
  37. Using trn?  Weird new newsgroup problem?  I know the fix!  Email me!
  38. The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
  39.